package com.settlement.system.service.impl;

import com.settlement.system.mapper.BaseMapper;
import com.settlement.system.mapper.TblNcVurcherSummaryPlusMapper;
import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblNcVurcherSummaryPlus;
import com.settlement.system.service.ITblNcVurcherSummaryPlusService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;
import java.util.Map;

/**
 * NC凭证明细 服务实现类
 *
 * @author Ximi
 * @since 2020-07-10
 */
@Service
@Slf4j
public class TblNcVurcherSummaryPlusServiceImpl extends BaseServiceImpl implements ITblNcVurcherSummaryPlusService {

    @Resource
    private TblNcVurcherSummaryPlusMapper tblNcVurcherSummaryPlusMapper;

    @Override
    public BaseMapper init() {
        return tblNcVurcherSummaryPlusMapper;
    }

    @Override
    public TblNcVurcherSummaryPlus getFoot(Map<String, Object> params) throws ServiceException {
        try {
            return tblNcVurcherSummaryPlusMapper.getFoot(params);
        } catch (Exception ex){
            log.error("获取合计异常",ex);
            throw new ServiceException("获取合计异常",ex);
        }
    }
}

